<?php die;?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>miceCMS,觅策企业网站管理系统</title>
<link href="css/default.css" rel="stylesheet" type="text/css">
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<script type='text/javascript' src='js/error.js'></script>
<script type='text/javascript' src='js/calendar.js'></script>
<script type='text/javascript' src='js/ShowMessage.js'></script>
<script language="JavaScript">
function CheckForm()
{
 if (document.form1.loginname.value.length == 0)
 {
  alert("登录名不能为空！");
  document.form1.loginname.focus();
  return false;
 } 
  return true;
}
</script>
</head>

<body>
<!--{include file="admin/upload_div.php"}-->
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
	<form id="form1" name="form1" action="<!--{$formaction}-->" method="post" onsubmit="return CheckForm()">
	<tr>
		<td width="45%" valign="top">
			<fieldset class="adminform">
				<legend>基本资料</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="430">
					<tr>
						<td width="85" class="keyred" height='20'>登录名:</td>
						<td colspan="2">
							<input name='user_id' id='user_id' type='hidden' value='<!--{$results->getUserId()}-->'>
							&nbsp;<input name='loginname' id='loginname' type='text' size='15' value='<!--{$results->getLoginname()}-->'>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>新密码:</td>
						<td colspan="2">
							&nbsp;<input name='pw1' id='pw1' type='password' size='17' maxlength='200' value=''>&nbsp;(不修改密码请留空)
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>重输一次:</td>
						<td colspan="2">
							&nbsp;<input name='pw2' id='pw2' type='password' size='17' maxlength='200' value=''>&nbsp;(不修改密码请留空)
						</td>
					</tr>
					<tr>
						<td width="85" class="keyred" height='20'>角色:</td>
						<td colspan="2">
							&nbsp;<select name="group_id">
							<!--{foreach from=$groups item=group}-->
								<option value='<!--{$group->getGroupId()}-->' <!--{if $group->getGroupId()==$results->getGroupId()}-->selected<!--{/if}-->><!--{$group->getName()}--></option>
							<!--{/foreach}-->
							</select>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>昵称:</td>
						<td colspan="2">
							&nbsp;<input name='nicename' id='nicename' type='text' size='15' value='<!--{$results->getNicename()}-->'>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>Email:</td>
						<td colspan="2">
							&nbsp;<input name='email' id='email' type='text' size='15' value='<!--{$results->getEmail()}-->'>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>IM:</td>
						<td colspan="2">
							&nbsp;<input name='im' id='im' type='text' size='15' value='<!--{$results->getIm()}-->'>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>个人网站:</td>
						<td colspan="2">
							&nbsp;<input name='url' id='url' type='text' size='15' value='<!--{$results->getUrl()}-->'>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>状态:</td>
						<td colspan="2">
							&nbsp;<select name="status">
								<option value='0' <!--{if 0==$results->getStatus()}-->selected<!--{/if}-->>正常</option>
								<option value='1' <!--{if 1==$results->getStatus()}-->selected<!--{/if}-->>禁止</option>
							</select>
							</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>到期时间:</td>
						<td colspan="2">
							&nbsp;<input name='stopdate' id='stopdate' type='text' size='15' value="<!--{$stopdate}-->"  onClick="setDay(this);"> (0表示永不到期)</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>积分:</td>
						<td colspan="2">
							&nbsp;<input name='pointnum' id='pointnum' type='text' size='15' value='<!--{$results->getPointnum()}-->'></td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>文章数:</td>
						<td colspan="2">
							&nbsp;<!--{$results->getPostnums()}-->
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>注册时间:</td>
						<td colspan="2">
							&nbsp;<!--{'micefun'|Num2Time:$results->getRegdate()}-->
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>最后登录:</td>
						<td colspan="2">
							&nbsp;<!--{'micefun'|Num2Time:$results->getLastlogindate()}-->
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>登录IP:</td>
						<td colspan="2">
							&nbsp;<!--{$results->getLastloginip()}-->
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
		<td  width="55%" valign="top">
			<fieldset class="adminform">
				<legend>详细资料</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="430">
					<tr>
						<td width="85" class="key" height='20'>真实姓名:</td>
						<td colspan="2">
							&nbsp;<input name='realname' id='realname' type='text' size='15' value='<!--{$results->getRealname()}-->'>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>头像:</td>
						<td colspan="2">
							&nbsp;<input name='headimg' id='headimg' type='text' size='15' value='<!--{$results->getHeadimg()}-->'>&nbsp;(请填写图片地址,<!--{'micefun'|ConfigV:'upload_link'}--><font color="red">上传头像</font></a>)
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>性别:</td>
						<td colspan="2">
							&nbsp;<select name="sex">
								<option value='0' <!--{if 0==$results->getSex()}-->selected<!--{/if}-->>保密</option>
								<option value='1' <!--{if 1==$results->getSex()}-->selected<!--{/if}-->>男</option>
								<option value='2' <!--{if 2==$results->getSex()}-->selected<!--{/if}-->>女</option>
							</select>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>生日:</td>
						<td colspan="2">
							&nbsp;<input name='brothday' id='brothday' type='text' size='15' value="<!--{if ($results->getBrothday()>0)}--><!--{'micefun'|Num2Date:$results->getBrothday()}--><!--{else}-->0<!--{/if}-->" onClick="setDay(this);">&nbsp;(不填写密码请置零)
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>简介:</td>
						<td colspan="2">
							<!--{$editor}-->
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>电话号码:</td>
						<td colspan="2">
							&nbsp;<input name='telno' id='telno' type='text' size='15' value='<!--{$results->getTelno()}-->'>
						</td>
					</tr>
					<tr>
						<td width="85" class="key" height='20'>地址:</td>
						<td colspan="2">
							&nbsp;<input name='address' id='address' type='text' size='15' value='<!--{$results->getAddress()}-->'>
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			&nbsp;&nbsp;<label><input type="checkbox" name="goon" id="goon" value="1">保存后继续添加</label>&nbsp;&nbsp;<input type="submit" value="保存[S]" accesskey="s"/>&nbsp;<input type="reset" value="重置[R]" accesskey="r"/>&nbsp;<input type="button" onclick="javascript:history.back(-1)" value="返回[B]" accesskey="b"/>
		</td>
	</tr>
	</form>
</table>
<br>
</body>
</html>